package com.xmb.quick.shiro;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 *
 * 自定义UsernamePasswordToken 必须传loginType
 *
 */
public class UserToken extends UsernamePasswordToken {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String loginType;

	public UserToken() {

	}

	public UserToken(final String username, final String password, final String loginType) {
		super(username, password);
		this.loginType = loginType;
	}
	
	public UserToken(final String username, final String password,final boolean rememberMe , final String loginType) {
		super(username, password, rememberMe);
		this.loginType = loginType;
	}

	public String getLoginType() {
		return loginType;
	}

	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}

	
}